<?php

class Create_PriChannels_Table {

    private $tableName = 'prichannels';
	/**
	 * Make changes to the database.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create($this->tableName, function ($tbl) {
            $tbl->increments('id');
            $tbl->integer('user_id')->unsigned();
            $tbl->integer('channel_id')->unsigned();
            $tbl->integer('weekday')->unsigned();
        });
	}

	/**
	 * Revert the changes to the database.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop($this->tableName);
	}

}